package com.ruibang.glass.common.utils.validateannotation;


import com.ruibang.glass.common.utils.ValidationUtils;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target({ElementType.FIELD, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = ValidationUtils.ObjectScopeValidation.class)
@Documented
public @interface ObjectScope {
    String message() default "{javax.validation.constraints.ObjectScopeError.message}";

    String[] valueStr() default {};

    int[] valueInt() default {};

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
